package com.qr.service.Impl;

import com.qr.dao.BuyMapper;
import com.qr.pojo.Buy;
import com.qr.service.BuyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BuyServiceImpl implements BuyService {

  @Autowired
    BuyMapper buyMapper;
    @Override
    public int addBuy(Buy buy) {
        return buyMapper.addBuy(buy);
    }

    @Override
    public int deleteBuy(int buyid) {
        return buyMapper.deleteBuy(buyid);
    }

    @Override
    public int updateBuy(Buy buy) {
        return buyMapper.updateBuy(buy) ;
    }

    @Override
    public Buy SelectBuy(int buyid) {
        return buyMapper.SelectBuy(buyid);
    }

    @Override
    public List<Buy> AllBuy() {
       return buyMapper.AllBuy();
    }
}
